package top.whysu.gps.constant;

/**
 * 常量类
 */
public class Constant {

    /**
     * 版本号
     */
    public static String serverVersion = "V0.9_20220604";

    /**
     * 系统默认语言
     */
    public static final String LANGUAGE_DEFAULT = "zh_CN";
    public static final String LANGUAGE_ZH_CN = "zh_CN";
    public static final String LANGUAGE_EN_US = "en_US";
    public static final String LANGUAGE_ZH_TW = "zh_TW";
    /***
     * 密码相关
     */
    public static final class PASSWORD {

        /**
         * 默认重置密码
         */
        public static final String DEFAULT = "Gps@2022";
    }

    public static final class WebSocket {
        /**
         * 目的节点
         */
        public static final String DESTINATION = "/topic";
        /**
         * 账户被踢(或账号信息被修改)
         */
        public static final Integer ALARM_ACCOUNT_KICKOUT = 10001;
    }

    public static final class AccountAlarm {
        /**
         * 账号被踢
         */
        public static final String KICKOUT_MESSAGE = "您的账号在其他设备登录，如果这不是您的操作，请及时修改您的登录密码。";
        /**
         * 账号信息被修改
         */
        public static final String MODIFY_MESSAGE = "您的账号相关信息已由管理员更新，请重新登录或联系管理员了解！";
        /**
         * 账号过期
         */
        public static final String TIMEOUT_MESSAGE = "您的账号已过期，请重新登录或联系管理员了解！";
    }

    /**
     * 默认账号
     */
    public static final class DefaultAccount {
        /**
         * 超级管理员
         */
        public static final String SUPER_ADMIN = "super_admin";
        /**
         * 管理员账号
         */
        public static final String ADMIN = "admin";
    }
    /**
     * 角色层级
     */
    public static final class RoleLevel {
        /**
         * 层级1
         */
        public static final Integer ONE_LEVEL = 1;
        /**
         * 层级2
         */
        public static final Integer TWO_LEVEL = 2;
        /**
         * 层级3
         */
        public static final Integer THREE_LEVEL = 3;
        /**
         * 层级4
         */
        public static final Integer FOUR_LEVEL = 4;
    }
    /**
     * 经度
     */
    public static final class Longitude {
        /**
         * 东经
         */
        public static final String EAST = "E";
        /**
         * 西经
         */
        public static final String WEST = "W";
    }

    /**
     * 纬度
     */
    public static final class Latitude {
        /**
         * 北纬
         */
        public static final String NORTH = "N";
        /**
         * 南纬
         */
        public static final String SOUTH = "S";
    }
}